import request from '../utils/sx-request'
let uri = process.env.API_GUO_URL
let host = uri + '/api'
export const indexShow = data => {
    return request.post(host + '/information/indexShow', data)
}
export const getInfos = (page, limit, province) => {
    return request.get(host + '/academy/infos?page=' + page + '&limit=' + limit + '&province=' + province)
}
export const getProvinces = () => {
    return request.get(host + '/academy/provinces')
}
export const getLives = (page, limit) => {
    return request.get(host + '/academy/lives?page=' + page + '&limit=' + limit)
}
export const getAdvisories = (page, limit, province_id, search) => {
    return request.get(host + '/academy/advisories?page=' + page + '&limit=' + limit + '&province_id=' + province_id + '&search=' + search)
}
export const getTopics = (page, limits) => {
    return request.get(host + '/academy/topics?' + page + '&' + limits)
}
export const getQuestions = (academyCode, page, limit) => {
    return request.get(host + '/academy/' + academyCode + '/questions?page=' + page + '&limit=' + limit)
}
export const putQuestions = (academyCode, obj) => {
    return request.post(host + '/academy/' + academyCode + '/questions', obj)
}
